import {defineStore} from "pinia"
import dayjs from 'dayjs'
export default defineStore('lookhis',{
	actions:{
		pushdata(data){
			this.lookhisdata.unshift({
				...data,
				looktime:dayjs().format('YYYY年MM月DD日 HH时mm分ss秒')
			})
		}
	},
	state(){
		return {
			lookhisdata:[]
		}
	},
	unistorage:{
		paths:['lookhisdata']
	}
})